<?php 
$dbcnx = mysqli_connect("216.185.102.20", "darylho","8604923?", "mfidatabase");

/* check connection */
if (mysqli_connect_errno()) {
    printf("Connect failed: %s\n", mysqli_connect_error());
    exit();
}

$user_id=$_POST['username'];
$passwd=$_POST['password'];

echo '  test 1';



echo '  test 2';

if ($result = mysqli_query($dbcnx, "INSERT INTO `agentable` (`username`,`password`) VALUES ('".$user_id."','".$passwd."')")) {
	
	printf("  pass");
	}
	else {
	printf ("  fail");
	}
	
	echo '  test 3';
mysqli_close($dbcnx);
echo 'test 4';
?>